Skip to content

Guess the listening address family in UDP input#1

Merged
avgerin0s merged 1 commit intoskroutzfrom
patch1
Apr 13, 2021
Merged

Guess the listening address family in UDP input#1
avgerin0s merged 1 commit intoskroutzfrom
patch1

Conversation

@avgerin0s
Copy link
Member

This code path used to break for IPv6 addresses with
SocketError (getaddrinfo: Address family for hostname not supported)
because it was using Socket::AF_INET for every input.

This is related to a JRuby bug1 that is marked as wontfix.

With the new implementation the address family is being retrieved by
Socket.getaddrinfo and supports both IPv4 and IPv6 addresses.

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

@avgerin0s avgerin0s requested a review from dblia April 13, 2021 13:12
Copy link

@dblia dblia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Θα ήθελα πολύ να σου πω να φτιάξεις και το travis build αλλά ααααντε.

This code path used to break for IPv6 addresses with
`SocketError (getaddrinfo: Address family for hostname not supported)`
because it was using `Socket::AF_INET` for every input.

This is related to a JRuby bug[1] that is marked as `wontfix`.

With the new implementation the address family is being retrieved by
`Socket.getaddrinfo` and supports both IPv4 and IPv6 addresses.

[1]: jruby/jruby#5112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants